<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Toshiba
 * Date: 11.08.13
 * Time: 21:08
 * To change this template use File | Settings | File Templates.
 */
function saveFeedback(){

    $str = $_POST["name"]."|".$_POST["email"]."|".$_POST["message"]."\n";
    file_put_contents(DATA_DIR.'feedbacks.txt', $str, FILE_APPEND);

echo <<<END
Your message have been accepted<br>
<a href="/">Return</a>
END;
exit;

}